home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 1146 / 1146.xpi / chrome / screengrab.jar / content / screengrabOverlay.xul < prev    next >
Extensible Markup Language  |  2009-03-09  |  7KB  |  114 lines

  1. <?xml version="1.0"?>
  2. <?xml-stylesheet href="chrome://screengrab/skin/screengrab.css" type="text/css"?>
  3. <?xml-stylesheet href="chrome://screengrab/skin/toolbar.css" type="text/css"?>
  4. <!DOCTYPE window SYSTEM "chrome://screengrab/locale/screengrab.dtd">
  5.  
  6. <overlay id="screengrabOverlay" xmlns:html="http://www.w3.org/1999/xhtml" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  7.  
  8.     <script type="application/x-javascript" src="chrome://global/content/nsUserSettings.js" />
  9.     <script type="application/x-javascript" src="chrome://screengrab/content/Header.js" />
  10.     <script type="application/x-javascript" src="chrome://screengrab/content/Box.js" />
  11.     <script type="application/x-javascript" src="chrome://screengrab/content/Prefs.js" />
  12.     <!--script type="application/x-javascript" src="chrome://screengrab/content/AddToToolbar.js" /-->
  13.     <script type="application/x-javascript" src="chrome://screengrab/content/Log4js.js" />
  14.     <script type="application/x-javascript" src="chrome://screengrab/content/UndoSet.js" />
  15.     <script type="application/x-javascript" src="chrome://screengrab/content/File.js" />
  16.     <script type="application/x-javascript" src="chrome://screengrab/content/Browser.js" />
  17.     <script type="application/x-javascript" src="chrome://screengrab/content/Document.js" />
  18.     <script type="application/x-javascript" src="chrome://screengrab/content/Highlighter.js" />
  19.     <script type="application/x-javascript" src="chrome://screengrab/content/Clipboard.js" />
  20.     <script type="application/x-javascript" src="chrome://screengrab/content/EmbeddedCapture.js" />
  21.     <script type="application/x-javascript" src="chrome://screengrab/content/Selection.js" />
  22.     <script type="application/x-javascript" src="chrome://screengrab/content/Target.js" />
  23.     <script type="application/x-javascript" src="chrome://screengrab/content/Capture.js" />
  24.     <script type="application/x-javascript" src="chrome://screengrab/content/ScrnShots.js" />
  25.     <script type="application/x-javascript" src="chrome://screengrab/content/Action.js" />
  26.     <script type="application/x-javascript" src="chrome://screengrab/content/Java.js" />
  27.     <script type="application/x-javascript" src="chrome://screengrab/content/Grab.js" />
  28.     <script type="application/x-javascript" src="chrome://screengrab/content/Util.js" />
  29.     
  30.     <!-- stringbundle to localize strings in .js file -->
  31.     <!-- many thanks to Jean-Bernard Marcon for all the help -->
  32.     <stringbundleset id="stringbundleset">
  33.        <stringbundle id="screengrab-strings" src="chrome://screengrab/locale/screengrab.properties"/>
  34.     </stringbundleset>
  35.     
  36.     <!--
  37.     <toolbarpalette id="BrowserToolbarPalette">
  38.         <toolbarbutton id="screengrab-toolbar-button"
  39.                        class="toolbarbutton-1 chromeclass-toolbar-additional"
  40.                        oncommand="document.getElementById('screengrab-toolbar-button').open=true;"
  41.                        type="menu-button"
  42.                        tooltiptext="Screengrab!"
  43.                        label="Screengrab!">
  44.             <menupopup id="screengrab-toolbar-menupopup"
  45.                        onpopupshowing="sg.Util.clonePopup(event, 'screengrab-menu-items', 'screengrab-toolbar-button')"
  46.                        onpopuphiding="sg.Util.clearPopup(event, 'screengrab-toolbar-button')">
  47.             </menupopup>
  48.         </toolbarbutton>
  49.     </toolbarpalette>
  50.     -->
  51.  
  52.     <!-- Context menu additions -->
  53.     <popup id="contentAreaContextMenu">
  54.         <menuseparator id="screengrab-context-separator"/>
  55.         <menu id="screengrab-context-menu" label="&screengrab.name;">
  56.             <menupopup id="screengrab-menu-items">
  57.                 <menu id="screengrab-save" label="&screengrab.save;">
  58.                     <menupopup>
  59.                         <menuitem id="pop-grabFrame" label="&screengrab.page;" 
  60.                             oncommand="sg.Grab(new sg.FrameTarget(), sg.CaptureViewPort, new sg.SaveAction());"/>
  61.                         <menuitem id="pop-grabViewPort" label="&screengrab.visible.portion.of.page;" 
  62.                             oncommand="sg.Grab(new sg.VisibleTarget(), sg.CaptureViewPort, new sg.SaveAction());"/>
  63.                         <menuitem id="pop-grabSelection" label="&screengrab.selection;" 
  64.                             oncommand="sg.Grab(new sg.SelectionTarget(), sg.CaptureViewPort, new sg.SaveAction());"/>
  65.                         <!--menuitem id="pop-grabElement" label="&screengrab.element;" 
  66.                             oncommand="sg.Grab(new sg.ElementTarget(), sg.CaptureViewPort, new sg.SaveAction());"/-->
  67.                         <menuitem id="pop-grabWindow" label="&screengrab.browser.window;" 
  68.                             oncommand="sg.Grab(new sg.WindowTarget(), sg.CaptureWindow, new sg.SaveAction());"/>
  69.                     </menupopup>
  70.                 </menu>
  71.                 <menu id="screengrab-copy" label="&screengrab.copy;">
  72.                     <menupopup>
  73.                         <menuitem id="pop-copyFrame" label="&screengrab.page;" 
  74.                                 oncommand="sg.Grab(new sg.FrameTarget(), sg.CaptureViewPort, new sg.CopyAction());"/>
  75.                         <menuitem id="pop-copyViewPort" label="&screengrab.visible.portion.of.page;" 
  76.                             oncommand="sg.Grab(new sg.VisibleTarget(), sg.CaptureViewPort, new sg.CopyAction());"/>
  77.                         <menuitem id="pop-copySelection" label="&screengrab.selection;" 
  78.                             oncommand="sg.Grab(new sg.SelectionTarget(), sg.CaptureViewPort, new sg.CopyAction());"/>
  79.                         <!--<menuitem id="pop-copyElement" label="&screengrab.element;" 
  80.                             oncommand="sg.Grab(new sg.ElementTarget(), sg.CaptureViewPort, new sg.CopyAction());"/>-->
  81.                         <menuitem id="pop-copyWindow" label="&screengrab.browser.window;" 
  82.                             oncommand="sg.Grab(new sg.WindowTarget(), sg.CaptureWindow, new sg.CopyAction());"/>
  83.                     </menupopup>
  84.                 </menu>
  85.             </menupopup>
  86.         </menu>
  87.     </popup>
  88.  
  89.     <statusbar id="status-bar">
  90.         <statusbarpanel id="screengrab_panel" 
  91.                         class="statusbarpanel-menu-iconic" 
  92.                         src="chrome://screengrab/skin/screengrab_status_icon.gif"
  93.                         collapsed="false"
  94.                         insertafter="statusbarpanel-progress"
  95.                         persist="collapsed"
  96.                         tooltiptext="Screengrab!">
  97.             <menupopup orient="horizontal" position="before_start"
  98.                        onpopupshowing="sg.Util.clonePopup(event, 'screengrab-menu-items', 'screengrab_panel')"
  99.                        onpopuphiding="sg.Util.clearPopup(event, 'screengrab_panel')">
  100.             </menupopup>
  101.         </statusbarpanel>
  102.     </statusbar>
  103.                     <!--<menuitem id="pop-grabBrowser" label="Custom..." 
  104.                     oncommand="sg.StagedGrab2()"/>-->
  105.                 <!--<menuitem id="pop-grabBrowser" label="Screengrab!..." 
  106.                     oncommand="window.open('chrome://screengrab/content/Screengrab.xul', 'screengrab', 'chrome,centerscreen,resizable');"/>-->
  107.                 <!--<menu id="screengrab-save" label="&screengrab.save;" tooltip="&screengrab.save;">
  108.                     <menupopup>
  109.                         <menuitem id="pop-grabBrowser" label="Custom..." 
  110.                             oncommand="window.open('chrome://screengrab/content/TargetChoice.xul', 'aboutMyExtension', 'chrome,centerscreen');"/>
  111.                     </menupopup>
  112.                 </menu>-->
  113. </overlay>
  114.